/*
 * copyright (c) 2009 Alexandr [Sn@ble] Surnin
 *
 * This file is part of FrameSeeker.
 *
 * FrameSeeker is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * FrameSeeker is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You can read the full version of GNU LGPL in
 * http://www.gnu.org/copyleft/lesser.html
 */


#ifndef FSMVSCONTEXT_H
#define FSMVSCONTEXT_H

#include <QObject>
#include <QList>

#include "FSMotionVector.h"
#include "FSDefines.h"


class FSMVsContext : public QObject {
    Q_OBJECT
public:
    FSMVsContext(int16_t (*m_val[2])[2], int _w, int _h, int _mSSL2, int _fType);
    ~FSMVsContext();

    FSMVsContext(const FSMVsContext &orig);

    FSMVsContext& operator=(const FSMVsContext &right);

    int16_t (**mvData)[2];

public slots:
    void extractMVs();
    void saveToDisk(QString &postfix);
    QList<FSMotionVector> getMVs();

    quint64 getImgWidth() const;

    quint64 getImgHeight() const;

    int getMVSampleLog2() const;

    int getFrameType() const;



private:
    quint64 imgWidth;
    quint64 imgHeight;

    int mvSampleLog2;
    int frameType;

    QList<FSMotionVector> MVs;


};

#endif // FSMVSCONTEXT_H
